package com.icloud.auth.boot.service;

import com.icloud.common.web.domain.UserDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by im on 2019/10/18.
 */
@FeignClient(value = "icloud-system", contextId = "authIcloudServer")
public interface UmsServerAccountService {
    /**
     * 后台账号用户信息获取
     */
    @GetMapping("/admin/loadByUsername")
    UserDto loadAdminUserByUsername(@RequestParam String username);

    @GetMapping("/app/loadByUsername")
    UserDto loadAppCustomerByUsername(@RequestParam String username);
}
